package com.chainyoung.component_tmperson.ui.mvp.contract;

import com.chainyoung.common.appcommon.entity.CommonList;
import com.chainyoung.common.mvp.IModel;
import com.chainyoung.common.mvp.IView;
import com.chainyoung.component_tmperson.entity.WalletFinancingOwn;
import com.chainyoung.component_tmperson.entity.WalletProfiRecord;

import java.util.List;
import java.util.TreeMap;

import io.reactivex.Flowable;

public interface WalletFinancingProfitContract {

    interface View extends IView {


        void onGetUserFinancingProfitSuccess(WalletFinancingOwn data);

        void onGetUserFinancingProfitFailed();

        void onTurnOutSuccess(String data);

        void onGetFinancingProfitListSuccess(CommonList<WalletProfiRecord> data);

        void onGetFinancingProfitListFailed();


    }

    interface Model extends IModel {


        Flowable<WalletFinancingOwn> getUserFinancingProfit(TreeMap<String, Object> map);

        Flowable<String> turnOut(TreeMap<String, Object> map);

        Flowable<CommonList<WalletProfiRecord>> getFinancingProfitList(TreeMap<String, Object> map);


    }


}
